import json
import random

print ''.join(str(random.choice(range(10))) for _ in range(4))

# learn function bool()
# print bool(2)  # True
# print bool(1)  # True
# print bool(0)  # False
# print bool("")  # False
# print bool("1")  # True

# learn tuple
# bet_data_list = [('lotteryid', '22')]
# list_bet_data = []
# bet_item1 = {'num': '01 02'}
# bet_item2 = {'num': '03 04'}
# list_bet_data.append(json.dumps(bet_item1))
# list_bet_data.append(json.dumps(bet_item2))
# for value in list_bet_data:
#     tuple1 = ('lt_project[]', value)
#     bet_data_list.append(tuple1)
# for tp in bet_data_list:
#     print tp
# print bet_data_list

dict1 = {1: [1, 11, 111], 2: [2, 22, 222]}
dict2 = {3: [3, 33, 333], 4: [4, 44, 444]}
# combine two dict

# {1:[1,11,111],2:[2,22,222],3:[3,33,333],4:[4,44,444]}
# way 1

dictMerged1 = dict(dict1.items() + dict2.items())
print dictMerged1
# way 2

dictMerged2 = dict(dict1, **dict2)

# way equals
dictMerged = dict1.copy()
dictMerged.update(dict2)

# or

dictMerged = dict(dict1)
dictMerged.update(dict2)
